package top.malaoshi.netdisk;

import org.springframework.web.servlet.DispatcherServlet;

import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebInitParam;
import javax.servlet.annotation.WebServlet;

@WebServlet(
        loadOnStartup = 0,
        urlPatterns = "/",
        initParams ={
                @WebInitParam(
                        name="scanPackage",
                        value = "top.malaoshi.netdisk"
                ),
                @WebInitParam(
                        name="printRoute",
                        value = "true"
                ),
                @WebInitParam(
                        name="printBeanName",
                        value = "true"
                )
        },
        asyncSupported = true // servlet3新特性，servlet支持异步，提升性能
)
@MultipartConfig( maxFileSize = 5*1024*1024,maxRequestSize = 5*1024*1024 * 10)
public class InitServlet extends DispatcherServlet {

}
